package com.bwc.subject.application.controller;

import com.bwc.subject.infra.basic.service.SubjectEsService;
import com.bwc.subject.infra.entity.UserInfo;
import com.bwc.subject.infra.rpc.UserRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/subject/category")
@Slf4j
public class TestFeignController {
    @Resource
    private UserRpc userRpc;



    @GetMapping("testFeign")
    public void testFeign(){
        UserInfo userInfo = userRpc.getUserInfo("ojDSc6aX2LrLIdvM3kbpB2mNSBL0");
        log.info("userInfo:{}",userInfo);
    }



}
